import { defineStore } from 'pinia'
// 和组件不同，在Pinia中使用路由，只能导入已经实例化后的路由对象
import router from '../router'

export const useAboutStore = defineStore('about', {
  state: () => {
    return {}
  },
  getters: {},
  actions: {
    goHome() {
      // console.log(router)
      // const router = useRouter()
      router.push('/')
    }
  }
})
